package indi.zn.commons.tree;

import java.util.ArrayList;

/**
 * @Description: 
 * @Copyright: Copyright (c) 2016

 * @author: 周楠
 * @date 2016年6月8日 上午9:09:48
 */

public class CommonTreeNode<I,V> extends TreeNode<I>{
	
	 private I nid;  //Node Id 
	 private I pid;  // parent Id
	 private V nodeObject;
	 
	public CommonTreeNode(){}; 
	 
	public CommonTreeNode(I nid, I pid,V nodeObject) {
		this.nid = nid;
		this.pid = pid;
		this.nodeObject=nodeObject;
		
		childrenNodes=new ArrayList<>();
	}

	

	public I getNid() {
		return nid;
	}

	public void setNid(I nid) {
		this.nid = nid;
	}

	public I getPid() {
		return pid;
	}

	public void setPid(I pid) {
		this.pid = pid;
	}
	

	public V getNodeObject() {
		return nodeObject;
	}

	public void setNodeObject(V nodeObject) {
		this.nodeObject = nodeObject;
	}

}
